package com.rem.service.impl;

import com.rem.domain.User;
import com.rem.mapper.UserMapper;
import com.rem.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author remembrance
 * @version 1.0
 * @date 2021/9/2 13:34
 */
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> queryUserList() {
        List<User> users = userMapper.queryUserList();
        return users;
    }

    @Override
    public int insertInto(User user) {
        System.out.println(user);
        System.out.println("方法执行了。。。");
        //int i = userMapper.insertInto(user);
        return 0;
    }
}
